﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="BuscarCliente.aspx.vb" Inherits="CondorTravel.BuscarCliente" %> 

<head>

<base target=_self></base>

    <style type="text/css">
        .style2
        {
            font-size: xx-small;
            width: 1584px;
            height: 19px;
        }
        .style3
        {
            width: 619px;
        }
        .style5
        {
            font-size: xx-small;
            height: 24px;
            width: 1584px;
        }
        .style10
        {
            font-size: x-small;
            height: 22px;
            text-align: center;
            font-weight: 700;
        }
        .style21
        {
            font-size: xx-small;
            height: 22px;
            width: 239px;
        }
        .style22
        {
            width: 239px;
        }
        .style31
        {
            height: 16px;
        }
        .style33
        {
            font-size: xx-small;
        }
        .style34
        {
            font-size: x-small;
        }
        .graybutton 
{
	text-decoration:none;
	BORDER: solid 1px #aaaaaa; FONT-WEIGHT: normal; FONT-SIZE: 9px; CLIP: rect(1px 1px 1px 1px); 
	COLOR: #333333; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #eeeeee;
	font-weight:bold;
            height: 18px;
        }

        .style39
        {
            width: 619px;
            height: 24px;
        }
        .style41
        {
            height: 24px;
            width: 239px;
        }
        .style42
        {
            font-size: xx-small;
            width: 1437px;
            height: 19px;
        }
        .style43
        {
            font-size: xx-small;
            height: 24px;
            width: 1437px;
        }
        </style>
</head>

<script>

    //    var ventana_secundaria

    //    function cerrarVentanaPrv() {
    //        //la referencia de la ventana es el objeto window del popup. Lo utilizo para acceder al método close
    ////        window.opener.location.href = url;
    //        window.close()
    //        
    //  
    //    }


    //    function abrirVentanaPadre() {
    //        //guardo la referencia de la ventana para poder utilizarla luego 
    //        ventana_secundaria1 = window.opener("../Servicios/AdministrarServicios.aspx?obtenerTabla()", "miventana", "width=800,height=310,menubar=no")
    //    }



</script>
<body bgcolor="#eaeaea">
<form id="form1" runat="server" title ="" > 
	<table style="border-width: thin; background-color: #EAEAEA; font-family: Arial; font-size: 10px; width: 550px;" 
        cellspacing="0" cellpadding="0" border="0"> 
		<tr class="TRlist3">
			<td class="style10" colspan="5"><u><strong>Búsqueda de Cliente</strong></u></td>
		</tr>
		<tr class="TRlist3">
			<td colspan="4" style="height: 22px" class="style34">&nbsp;</td>
			<td class="style21">
                  &nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td class="style2">&nbsp;&nbsp;&nbsp;&nbsp; Cliente</td>
			<td class="style42">
                <span class="style33">
                 <asp:TextBox ID="txtRazonSocial" runat="server" Width="270px" MaxLength="50"></asp:TextBox>
                 </span></td>
			<td class="style2">
                  <asp:Button ID="btnConsultar" class="graybutton" runat="server" 
                    Text="Consultar" Width="100px" />
            </td>
			<td class="style3">
                <span class="style33">
                 &nbsp;</span></td>
			<td class="style22" valign="top">
                  &nbsp;</td>            
		</tr>		
		<tr class="TRlist3">
			<td class="style5">&nbsp;</td>
			<td class="style43">
                &nbsp;</td>
			<td class="style5">				
                  <asp:Button ID="btnSeleccionar" class="graybutton" runat="server" 
                    Text="Seleccionar" Width="100px" />
            </td>
			<td class="style3">               
				&nbsp;</td>

		    <td class="style22">				
                  &nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td class="style5">
                &nbsp;</td>
			<td class="style43">
                &nbsp;</td>
			<td class="style5">
                  <asp:Button ID="btnSalir" class="graybutton" runat="server" 
                    Text="Salir" Width="100px" />
            </td>
			<td class="style3" align="center">               
				&nbsp;</td>

		    <td class="style22">				
                  &nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td class="style5" colspan="3">&nbsp;</td>
			<td class="style39">               
				&nbsp;</td>

		    <td class="style41">
			    &nbsp;</td>
		</tr>
		<tr class="TRlist3">
			<td class="style31" colspan="5" dir="ltr" 
                style="font-style: normal; font-size: x-small; background-color: #EAEAEA;">
    <asp:GridView ID="dgCliente" runat="server" 
        AutoGenerateColumns="False" Width="450px" Font-Names="Arial">
        <AlternatingRowStyle Font-Bold="False" Font-Strikeout="False" />
        <Columns>
            <asp:TemplateField HeaderText="Seleccionar">
              <ItemTemplate>
                   <asp:CheckBox ID="chkSeleccionar" runat="server"   />
                   <asp:Label ID="lblcodigo" runat="server" Text='<%#Eval("NomCLi") %>'  OnCommand="CapturaNombre" CausesValidation="False"
                                    Visible="False"></asp:Label>
                   <asp:Label ID="lblRuc" runat="server" Text='<%#Eval("Ruc") %>'  OnCommand="CapturaRuc"  CausesValidation="False"
                                    Visible="False"></asp:Label> 

              </ItemTemplate>
    
                <HeaderStyle Width="3px" />
    
            </asp:TemplateField>
            <asp:BoundField DataField="NomCLi" HeaderText="Cliente" >
            <HeaderStyle Width="10px" />
            </asp:BoundField>
            <asp:BoundField HeaderText="RUC / DNI" DataField="Ruc" />
        </Columns>
        <FooterStyle Font-Bold="False" Font-Strikeout="True" />
        <HeaderStyle BackColor="#666666" Font-Size="XX-Small" ForeColor="White" />
        <RowStyle Font-Size="XX-Small" />
    </asp:GridView>
      <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="#FF3300" 
          Text="No existe información a mostrar" Font-Size="XX-Small" Visible="False"></asp:Label>
                <br />
            </td>
					 
	</table>
</form>

